#ifndef ExtendUtil_h__
#define ExtendUtil_h__

#include "Global.h"

class ExtendUtil
{
public:
	static CCNode* readNode(const char * pCCBFileName, CCObject* pOwer)
	{
		cocos2d::extension::CCBReader * ccbReader = new cocos2d::extension::CCBReader(CCNodeLoaderLibrary::sharedCCNodeLoaderLibrary());
		ccbReader->autorelease();
		CCNode * node = ccbReader->readNodeGraphFromFile("sprite/", pCCBFileName, pOwer);
		return node;
	}
};
#define ReadNode(pCCBFileName, pOwer) ExtendUtil::readNode(pCCBFileName, pOwer)
#define RegisterLoader(pClassName, pCCNodeLoader) CCNodeLoaderLibrary::sharedCCNodeLoaderLibrary()->registerCCNodeLoader(pClassName, pCCNodeLoader)
//#define REGISTER_CLASS_LOADER(ClassName) ClassName::registerLoadersa();
#endif // ExtendUtil_h__
